﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;
namespace LIMS.Entities
{
    [ActiveRecord(Lazy = true)]
    [Serializable]
    public class AuditTrail : ActiveRecordBase
    {
        public AuditTrail()
        {
        }

        #region Private

        private int id;
        private string tablename = string.Empty;
        private string columnchanged = string.Empty;
        private int tablerowid;
        private string oldvalue = string.Empty;
        private string newvalue = string.Empty;
        private string comment = string.Empty;
        private DateTime createdDateTime;
        private int createdBy;
        #endregion

        #region public
        public virtual int Id
        {
            get { return id; }
            set { id = value; }
        }

        public virtual string TableName
        {
            get { return tablename; }
            set { tablename = value; }
        }
        public virtual string ColumnChanged
        {
            get { return columnchanged; }
            set { columnchanged = value; }
        }
        public virtual int TableRowId
        {
            get { return tablerowid; }
            set { tablerowid = value; }
        }

        public virtual string OldValue
        {
            get { return oldvalue; }
            set { oldvalue = value; }
        }
        public virtual string NewValue
        {
            get { return newvalue; }
            set { newvalue = value; }
        }
        public virtual string Comment
        {
            get { return comment; }
            set { comment = value; }
        }
        public virtual DateTime CreatedDateTime
        {
            get { return createdDateTime; }
            set { createdDateTime = value; }
        }
        public virtual int CreatedBy
        {
            get { return createdBy; }
            set { createdBy = value; }
        }
#endregion 

    }
}
